{extend name='main'}

{block name="button"}
<!--{if auth("add")}-->
<button data-modal='{:url("add")}' data-title="添加店员" class='layui-btn layui-btn-sm layui-btn-primary'>添加店员</button>
<!--{/if}-->
{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='shop_clerk/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
            </th>
            <th class='text-center'>ID</th>
            <th class='text-center'>店员编号</th>
            <th class='text-center'>店员名称</th>
            <th class='text-center'>性别</th>
            <th class='text-center'>头像</th>
            <th class='text-center'>门店名称</th>
            <th class='text-center'>FaceId</th>
            <th class='text-center'>联系电话</th>
            <th class='text-center'>岗位</th>
            <th class='text-center'>管理职务详情</th>
            <th class='text-center'>状态</th>
            <th class='text-center'>创建时间</th>
            <th class='text-center' width="100px">操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {volist name="list" id="vo" key='key'}
        <tr data-dbclick>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" value='' type='checkbox'></label>
            </td>
            <td class='text-center'>{$vo.id|default=''}</td>
            <td class='text-center'>{$vo['number']|default='-'}</td>
            <td class='text-center'>{$vo['name']|default='-'}</td>
            <td class='text-center'>{$vo['sex_title']|default='-'}</td>
            <td class='text-center'><img data-tips-image="" src="{$vo['portrait']|default='-'}" width="80px" height="80px"/></td>
            <td class='text-center'data-tips-text="{$vo.shop_names|default='-'}" >
                {$vo['shop_names']|omit|default='-'}
            </td>
            <td class='text-center'>{$vo['face_id']|default='-'}</td>
            <td class='text-center'>{$vo['phone']|default='-'}</td>
            <td class='text-center'>{$vo['position']|default='-'}</td>
            <td class='text-center'>{$vo['work_detail']|default='-'}</td>
            <td class='text-center'>{$vo['status_title']|default='-'}</td>
            <td class='text-center'>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
            <td class='text-center'>
                <!--{if auth("edit")}-->
                <a data-dbclick class="layui-btn  layui-btn-xs" data-title="编辑店员"
                   data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
                <!--{/if}-->
                <!--{if auth("remove")}-->
                <a class="layui-btn layui-btn-danger layui-btn-xs" data-confirm="确定要删除员工吗?"
                   data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
                <!--{/if}-->
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}